import request from './request'
export const getBanners = () => {
  return request({
    url: 'api/main-banner?paged=1&pageSize=5&position=M1&ajaxMark=731',
    method: 'get'
  }).then(res => {
    return res.list
  })
}

export const getHomeList = () => {
  return request({
    url: 'api/query/newproducts?paged=1&pageSize=16&ajaxMark=432',
    method: 'get'
  }).then(res => {
    return res.list
  }).catch((e) => {})
}

export const getMianBanners = () => {
  return request({
    url: 'api/query/recommendproducts?paged=1&pageSize=20&ajaxMark=831',
    method: 'get'
  }).then(res => {
    return res.list
  })
}
